/* -----------------------------------------------------------------------------
 * PROJECT    : lwf
 * FILE       : FormBasicInfo.java
 *
 * HISTORY:
 * Date          Author                        Description
 * ----------------------------------------------------------------------------- 
 * Mar 8, 2011  mycodetalks			       Created
 */
package net.lwf.entity;

import net.lwf.common.constant.ICommonConstant;

/**
 * Class description goes here
 */
public class FormBasicInfo {
	
	private String pageTitle = "";
	private String mainTitle = "";
	private String quizLink = "";
	private String pdfLink = "";
	

/*	public FormBasicInfo(String title) {
		super();
		this.title = title;
	}

	
	public FormBasicInfo(String title, String quizLink) {
		super();
		this.title = title;
		this.quizLink = quizLink;
	}


	public FormBasicInfo(String title, String quizLink, String pdfLink) {
		super();
		this.title = title;
		this.quizLink = quizLink;
		this.pdfLink = pdfLink;
	}*/

	

	public void setQuizLink(String quizLink) {
		this.quizLink = quizLink;
	}

	public String getPageTitle() {
		return pageTitle;
	}

	public void setPageTitle(String pageTitle) {
		this.pageTitle = pageTitle;
	}

	public String getMainTitle() {
		return mainTitle;
	}

	public void setMainTitle(String mainTitle) {
		this.mainTitle = mainTitle;
	}

	public void setPdfLink(String pdfLink) {
		this.pdfLink = pdfLink;
	}

	public String getQuizLink() {
		return quizLink;
	}

	public String getPdfLink() {
		return pdfLink;
	}
	
	public boolean getDisplayPractice() {
		if(!this.quizLink.equals(ICommonConstant.EMPTY) || !this.pdfLink.equals(ICommonConstant.EMPTY)) {
			return true;
		}
		return false;
	}
	
	public boolean getShowDisplayLinks() {
		if(!this.pdfLink.equals(ICommonConstant.EMPTY) || !this.quizLink.equals(ICommonConstant.EMPTY)) {
			return true;
		}
		return false;
	}
	
	public boolean getDisplayPdfLink() {
		if(!this.pdfLink.equals(ICommonConstant.EMPTY)) {
			return true;
		}
		return false;
	}
	
	public boolean getDisplayQuizLink() {
		if(!this.quizLink.equals(ICommonConstant.EMPTY) ) {
			return true;
		}
		return false;
	}

}



